<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" media="screen" href="css/login.css">
  <title>AI 论坛</title>
  <link rel="stylesheet" href="./layui/css/layui.css">
  <style>
  	body{
  		overflow:hidden;
  		background:#000;
  	}
  	.maintalk{
  		padding: 15px;
  		color:white;
		height: 100%;
  	}
  	.iframe{
		width: 100%;
		height: 100%;
	}
  </style>
</head>
<body>
<!--  <canvas id="container"></canvas>	-->
<div id="particles-js" style="display: flex;align-items: center;justify-content: center">
	<canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="472" height="625"></canvas>
</div>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">AI 论坛</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>
      <!--
      <li class="layui-nav-item layui-hide-xs"><a href="">nav 1</a></li>
      <li class="layui-nav-item layui-hide-xs"><a href="">nav 2</a></li>
      <li class="layui-nav-item layui-hide-xs"><a href="">nav 3</a></li>
      
      <li class="layui-nav-item">
        <a href="javascript:;">nav groups</a>
        <dl class="layui-nav-child">
          <dd><a href="">menu 11</a></dd>
          <dd><a href="">menu 22</a></dd>
          <dd><a href="">menu 33</a></dd>
        </dl>
      </li>
      -->
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        <a href="javascript:;">
          <img src="./pic/2.jpg" class="layui-nav-img">
          <span id='user'>user</span>
        </a>
        <dl class="layui-nav-child">
          <!-- <dd><a href="">Your Profile</a></dd>
          <dd><a href="">Settings</a></dd>
           -->
          <dd><a href="">登出</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">深度学习框架</a>
          <dl class="layui-nav-child">
            <dd><a href="https://pytorch.org/">pytorch</a></dd>
            <dd><a href="https://tensorflow.google.cn/">tensorflow</a></dd>
            <dd><a href="https://keras.io/">keras</a></dd>
            <dd><a href="https://www.paddlepaddle.org.cn/">paddle</a></dd>       
          </dl>
        </li>
 
        <!--<li class="layui-nav-item">-->
          <!--<a href="javascript:;">实验室</a>-->
          <!--<dl class="layui-nav-child">-->
            <!--<dd><a href="UploadPic.html" target='_blank'>物体识别</a></dd>-->
            <!--&lt;!&ndash; -->
            <!--<dd><a href="javascript:;">list 2</a></dd>-->
            <!--<dd><a href="">超链接</a></dd>-->
             <!--&ndash;&gt;-->
          <!--</dl>-->
        <!--</li>-->
        
        <li class="layui-nav-item"><a onclick="loadPage('uppaper.html')">发帖</a></li>
        <li class="layui-nav-item"><a href="javascript:;">信息反馈</a></li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div class='maintalk' id="test">
   	  <iframe class='iframe' src="postings.html">
        <p>浏览器不支持 iframe 标签。</p>
  	  </iframe>
    </div>
  </div>
  
  <!-- 
  <div class="layui-footer">
    <-- 底部固定区域 --
    底部固定区域
  </div>
  -->
</div>
</body>
<script src="js/JQ.js"></script>
<script src="js/particle.js"></script>
<script src="./layui/layui.js"></script>
<script src="js/login.js"></script>
<script src="js/loginApp.js"></script>
<script src="js/jQsession.js"></script>
<script>
//JS
var loadPage = function(href){
	//$("#test").load(href);
	window.location.replace("uppaper.html");
}
$(document).ready(function(){
	var name = $.session.get('name');
	//alert(name);
	document.getElementById("user").innerHTML=name; 
})

layui.use(['element', 'layer', 'util'], function(){
  var element = layui.element
  ,layer = layui.layer
  ,util = layui.util
  ,$ = layui.$;
  
  //头部事件
  util.event('lay-header-event', {
    //左侧菜单事件
    menuLeft: function(othis){
      layer.msg('展开左侧菜单的操作', {icon: 0});
    }
    ,menuRight: function(){
      layer.open({
        type: 1
        ,content: '<div style="padding: 15px;">版本号：1.0</div>'
        ,area: ['260px', '100%']
        ,offset: 'rt' //右上角
        ,anim: 5
        ,shadeClose: true
      });
    }
  });
});
</script>
</html>